package com.security.demo.mapper;

import com.security.demo.entity.Role;
import com.security.demo.entity.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {
    UserInfo getUserByName(@Param("username") String username);

    List<Role> getRoleListByUserId(@Param("userId") Integer userId);
}
